﻿package mortal.game.view.rebate.openNewSerSevenDay.active2
{
    import com.mui.display.*;
    import extend.language.*;
    import mortal.component.window.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.mvc.interfaces.*;

    public class OpenNewSerSevenDayMod2 extends BaseWindow
    {
        protected var _bBG:ScaleBitmap;
        protected var _bottom:OpenNewSerSevBottom2;
        protected var _top:OpenNewSerSevTop2;
        private static var _instance:OpenNewSerSevenDayMod2;

        public function OpenNewSerSevenDayMod2(param1:ILayer = null)
        {
            super(param1);
            setSize(685, 580);
            title = "" + Language.getString(71794);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._top = UIFactory.getUICompoment(OpenNewSerSevTop2, 9, 37, this);
            this._bBG = UIFactory.bg(7, 315, 678, 267, this, ImagesConst.PanelBg);
            this._bottom = UIFactory.getUICompoment(OpenNewSerSevBottom2, 15, 320, this);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._top = null;
            this._bBG = null;
            this._bottom = null;
            super.disposeImpl(param1);
            return;
        }// end function

        public function updateBtns() : void
        {
            return;
        }// end function

        public static function get instance() : OpenNewSerSevenDayMod2
        {
            if (_instance == null)
            {
                _instance = new OpenNewSerSevenDayMod2;
            }
            return _instance;
        }// end function

        public static function get isView() : Boolean
        {
            return _instance && !_instance.isHide;
        }// end function

    }
}
